package com.rongc.client.freight.business.mine.request.api;


import com.android.volley.Response;
import com.rongc.client.core.network.api.MultipartRequest;
import com.rongc.client.core.network.params.BaseParams;
import com.rongc.client.freight.ApiUrl;
import com.rongc.client.freight.UniApplication;

import java.io.File;
import java.util.Map;


/*
*  获取个人信息
* */
public class UpdateImgApi extends MultipartRequest {

    public UpdateImgApi(Response.Listener<String> listener, Response.ErrorListener errorListener,
                        String filePartName, File file, Map<String, String> params) {
        super(ApiUrl.getUpdateImgUrl(), listener, errorListener, filePartName ,file,params,String.class);
    }

    public static class UpdateImgParams extends BaseParams {

        public UpdateImgParams() {
            put("id", UniApplication.getInstance().getUserInfo().getUserId());
        }
    }
}
